﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    <DataTemplate x:Key="MinimzeViewTemplate">
        <Grid DataContext="{Binding RelativeSource={RelativeSource AncestorType=Window},Path=DataContext}" Height="32">
            
            <StackPanel Grid.Row="1" Margin="3" Orientation="Horizontal" HorizontalAlignment="Center">
                <StackPanel Margin="0,0,5,0">
                    <ToggleButton IsChecked="{Binding IsShuffle}" MaxHeight="15" VerticalAlignment="Top" ToolTip="Произвольный режим">
                        <Image Source="..\Icons\button-shuffle.png"  HorizontalAlignment="Center" VerticalAlignment="Center"/>
                    </ToggleButton>

                    <ToggleButton IsChecked="{Binding IsRepeat}"  MaxHeight="15" VerticalAlignment="Bottom" ToolTip="Повторять текущую запись">
                        <Image Source="..\Icons\button-rotate-cw.png"   HorizontalAlignment="Center" VerticalAlignment="Center"/>
                    </ToggleButton>
                </StackPanel>


                <Button Command="MediaCommands.PreviousTrack" CommandTarget="{Binding}">
                    <Image Source="../Icons/button-rew.png" MaxHeight="24"/>
                </Button>
                <Button  Command="MediaCommands.Stop" CommandTarget="{Binding}">
                    <Image Source="../Icons/button-stop.png" MaxHeight="24"/>
                </Button>
                <Button  Command="MediaCommands.Play" CommandTarget="{Binding}">
                    <Image Source="../Icons/button-play.png" MaxHeight="24"/>
                </Button>
                <Button  Command="MediaCommands.Pause" CommandTarget="{Binding}">
                    <Image Source="../Icons/button-pause.png" MaxHeight="24"/>
                </Button>
                <Button  Command="MediaCommands.NextTrack" CommandTarget="{Binding}">
                    <Image Source="../Icons/button-ff.png" MaxHeight="24"/>
                </Button>
                <Button Style="{StaticResource VolumeButton}" Margin="5" MaxHeight="18">

                </Button>
            </StackPanel>
        </Grid>
    </DataTemplate>
</ResourceDictionary>